// @ts-ignore
/* eslint-disable */
import request from '@/utils/request.ts'

/** 收藏到单个文件夹 POST /questionCollect/add */
export async function add1(body: API.BizQuestionCollect, options?: { [key: string]: any }) {
  return request<API.BaseResponseObject>('/questionCollect/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 收藏到多个文件夹 POST /questionCollect/addMulti */
export async function addMulti(
  body: API.QuestionMultiCollectDto,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseObject>('/questionCollect/addMulti', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 DELETE /questionCollect/delete */
export async function delete2(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.delete2Params,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseObject>('/questionCollect/delete', {
    method: 'DELETE',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 GET /questionCollect/questions/${param0} */
export async function getQuestionsInCollect(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getQuestionsInCollectParams,
  options?: { [key: string]: any }
) {
  const { collectId: param0, ...queryParams } = params
  return request<API.BaseResponseObject>(`/questionCollect/questions/${param0}`, {
    method: 'GET',
    params: { ...queryParams },
    ...(options || {}),
  })
}
